package ai.connectfour.entities;

import java.util.Comparator;

public class ActionComparator implements Comparator<Action>{

	@Override
	public int compare(Action action1, Action action2) {
		if(action1.getFieldValue() < action2.getFieldValue()){
			return 1;
		}else if(action1.getFieldValue() > action2.getFieldValue()){
			return -1;
		}
		return 0;
	}
}
